import javax.print.attribute.standard.RequestingUserName;

public class Teacher extends Person{
    private int mony;

    public Teacher() {

    }

    public Teacher(String name, int age, int mony) {
        super(name, age);
        this.mony = mony;
    }

    public int getMony() {
        return mony;
    }

    public void setMony(int mony) {
        this.mony = mony;
    }

    @Override
    public void run() {
        super.run();
        System.out.println(this.getName()+"在备课");
    }
}
